package com.shop.milk_tea_shop.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 职员信息表：	存储最高管理员admin、店长店员等职员信息。
 * </p>
 *
 * @author yjw
 * @since 2024-06-16
 */
@TableName("employee_info_table")
@ApiModel(value = "EmployeeInfo对象", description = "职员信息表：	存储最高管理员admin、店长店员等职员信息。")
public class EmployeeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("职员id，从10位数开始")
    @TableId(value = "employee_id", type = IdType.AUTO)
    private Long employeeId;

    @ApiModelProperty("职员名称")
    private String employeeName;

    @ApiModelProperty("密码，默认123456")
    private String password;

    @ApiModelProperty("账号角色（0：最高管理员；1：店长）")
    private Integer role;

    @ApiModelProperty("头像")
    private String logo;

    @ApiModelProperty("电话号码")
    private String tel;

    @ApiModelProperty("性别（0：无；1：女；2：男）")
    private Integer gender;

    @ApiModelProperty("状态（0：删除，1：正常）")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime alterTime;

    @ApiModelProperty("修改用户")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long alterUserId;

    @ApiModelProperty("扩展字段")
    private String extra;

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public LocalDateTime getAlterTime() {
        return alterTime;
    }

    public void setAlterTime(LocalDateTime alterTime) {
        this.alterTime = alterTime;
    }

    public Long getAlterUserId() {
        return alterUserId;
    }

    public void setAlterUserId(Long alterUserId) {
        this.alterUserId = alterUserId;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public String toString() {
        return "EmployeeInfo{" +
            "employeeId = " + employeeId +
            ", employeeName = " + employeeName +
            ", password = " + password +
            ", role = " + role +
            ", logo = " + logo +
            ", tel = " + tel +
            ", gender = " + gender +
            ", status = " + status +
            ", createTime = " + createTime +
            ", createUserId = " + createUserId +
            ", alterTime = " + alterTime +
            ", alterUserId = " + alterUserId +
            ", extra = " + extra +
        "}";
    }
}
